<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 

class Rules extends MY_Controller {

	function index() {
		$data = $this->getData('rules');

		$this->ci =& get_instance();

		$sql = "SELECT val FROM ".$this->tblc." WHERE `name` LIKE 'rules'";
		$query = $this->db->query($sql);
		$row = $query->row();
		
		$data["content"] = "";
		if (count($row)) {
			$data["content"] = $row->val;	
		};
		
		
		$this->load->view('layout', $data);
		
	}
}
?>
